package org.jeecg.modules.middle.business.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.manage.entity.CaishuiBusinessUser;

import java.util.List;

/**
 * @Description: 商户用户表
 * @Author: yfkj
 * @Date:   2023-02-07
 * @Version: V1.0
 */
public interface ICaishuiBusinessUserService extends IService<CaishuiBusinessUser> {

	/**
	 * 外键关联分页查询
	 * @param page
	 * @param queryWrapper
	 * @return
	 */
	public IPage<CaishuiBusinessUser> pageMultiTable(IPage<CaishuiBusinessUser> page, QueryWrapper<CaishuiBusinessUser> queryWrapper);

	/**
	 * 通过主表id查询子表数据
	 *
	 * @param mainId 主表id
	 * @return List<CaishuiBusinessUser>
	 */
	public List<CaishuiBusinessUser> selectByMainId(String mainId);

	/**
	 * 添加商户用户
	 * @param caishuiBusinessUser
	 */
	Result<?> addBusinessUser(CaishuiBusinessUser caishuiBusinessUser);

	/**
	 * 编辑商户用户
	 * @param caishuiBusinessUser
	 */
	Result<?> editBusinessUser(CaishuiBusinessUser caishuiBusinessUser);

	/**
	 * 删除商户用户
	 * @param id
	 */
	Result<?> deleteBusinessUser(String id);

}
